import java.util.Arrays;

public class BinaryTree {
    public class TreeNode {
        int val;
        TreeNode left;
        TreeNode right;
        public  TreeNode(int val) {
            this.val = val;
        }
    }
    public void preOrder(TreeNode root) {
        if(root == null) {
            return;
        }
        System.out.print((char)root.val+" ");
        preOrder(root.left);
        preOrder(root.right);
    }
}
